<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>提现管理</title>
    <meta name="description" content="这是一个提现管理页面">
    <meta name="keywords" content="提现管理">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="${contextPath}/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="${contextPath}/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="${contextPath}/assets/css/amazeui.datatables.min.css" />
    <link rel="stylesheet" href="${contextPath}/assets/css/app.css">
    <script src="${contextPath}/assets/js/jquery.min.js"></script>
    <style>
        .am-u-sm-4{height:35px}
        .widget-body{margin-top: -20px}
    </style>
</head>

<body data-type="widgets">
    <script src="${contextPath}/assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
        <#include "/pc/common/header.html">
        <!-- 侧边导航栏 -->
        <#include "/pc/common/left.html">
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <ol class="am-breadcrumb widget-head">
                                <li><a href="${contextPath}/index.htm" class="am-icon-home">首页</a></li>
                                <li>提现管理</li>
                                <div class="am-btn-group-xs am-btn-group" style="float: right">
                                    <button type="button" class="am-btn am-btn-secondary"
                                            onclick="search_b()"><span class="am-icon-search"></span>搜索
                                    </button>
                                    <a href="${contextPath}/cash/list.htm" class="am-btn am-btn-warning">
                                        <span class="am-icon-refresh"></span>清空
                                    </a>
                                </div>
                            </ol>
                            <div class="widget-body  am-fr">
                                <div class="am-u-sm-12">
                                    <div class="am-g">
                                        <#if Session.manager_js == 2>
                                        <div class="am-u-sm-4 am-form-inline">
                                            <label for="cityid" class="am-form-label">归属城市：</label>
                                            <div class="am-form-group">
                                                <select id="cityid" class="am-form-field" style="width: 185px;color: #a4a4a4;"
                                                        name="cityid">
                                                    <#if vo.cityid??>
                                                        <#assign cityid="${vo.cityid?c}" />
                                                    </#if>
                                                    ${dict.getCityOptions(cityid)}
                                                </select>
                                            </div>
                                        </div>
                                        </#if>
                                        <div class="am-u-sm-4 am-form-inline">
                                            <label for="memberid" class="am-form-label ">会员编号：</label>
                                            <div class="am-form-group ">
                                                <input type="text" class="am-form-field" id="memberid"
                                                       placeholder="输入会员编号" value="${vo.memberid!}">
                                            </div>
                                        </div>
                                        <div class="am-u-sm-4 am-form-inline">
                                            <label for="paytype" class="am-form-label ">提现方式：</label>
                                            <div class="am-form-group ">
                                                <select id="paytype" class="am-form-field" style="width: 185px;color: #a4a4a4;"
                                                        name="paytype">
                                                    <option value="">请选择</option>
                                                    <#if vo.paytype??>
                                                        <#assign paytype="${vo.paytype?c}" />
                                                    </#if>
                                                    ${dict.getOptions('cash_apply_payType',paytype)}
                                                </select>
                                            </div>
                                        </div>
                                        <div class="am-u-sm-4 am-form-inline">
                                            <label for="status" class="am-form-label 1">申请状态：</label>
                                            <div class="am-form-group ">
                                                <select id="status" class="am-form-field" style="width: 185px;color: #a4a4a4;"
                                                        name="status">
                                                    <option value="">请选择</option>
                                                    <#if vo.status??>
                                                        <#assign status="${vo.status?c}" />
                                                    </#if>
                                                    ${dict.getOptions('cash_apply_status',status)}
                                                </select>
                                            </div>
                                        </div>
                                        <div class="am-u-sm-4 am-form-inline">
                                            <label for="category" class="am-form-label ">提现类别：</label>
                                            <div class="am-form-group ">
                                                <select id="category" class="am-form-field" style="width: 185px;color: #a4a4a4;"
                                                        name="category">
                                                    <option value="">请选择</option>
                                                    <#if vo.category??>
                                                        <#assign category="${vo.category?c}" />
                                                    </#if>
                                                    ${dict.getOptions('cash_apply_category',category)}
                                                </select>
                                            </div>
                                        </div>
                                        <div class="am-u-sm-4 am-form-inline am-u-end">
                                            <label class="am-form-label">申请时间：</label>
                                            <div class="am-form-group">
                                                <input type="text" id="starttime" class="am-form-field" style="width: 100px;float: left"
                                                       placeholder="开始时间" <#if vo.starttime??>value="${vo.starttime?string('yyyy-MM-dd')}"</#if> data-am-datepicker><input id="endtime" type="text" class="am-form-field" style="width: 100px;float: left;margin-left: 5px"
                                                                                                                                                                           placeholder="结束时间" <#if vo.endtime??>value="${vo.endtime?string('yyyy-MM-dd')}"</#if> data-am-datepicker>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="am-u-sm-12" style="border-top: 1px solid #eef1f5;padding-top: 10px;margin-top: 10px">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black am-text-nowrap am-scrollable-horizontal am-table-centered" id="example-r">
                                        <thead>
                                            <tr>
                                                <th>会员编号</th>
                                                <th>申请金额</th>
                                                <th>申请时间</th>
                                                <th>提现方式</th>
                                                <th>申请状态</th>
                                                <th>平台抽成比例</th>
                                                <th>抽成金额</th>
                                                <th>审核时间</th>
                                                <th>提现类别</th>
                                                <th>归属城市</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <#list page as l>
                                            <tr class="gradeX">
                                                <td><a href="${contextPath}/member/list.htm?id=${l.memberid!}">${l.memberid!}</a></td>
                                                <td>${l.amount!}<small>元</small></td>
                                                <td>
                                                    <#if l.creaettime??>
                                                        ${l.creaettime?string('yyyy-MM-dd HH:mm:ss')}
                                                    </#if>
                                                </td>
                                                <td>
                                                    <#if l.paytype??>
                                                        ${dict.getDicName('cash_apply_payType',l.paytype?c)}
                                                    </#if>
                                                </td>
                                                <td>
                                                    <#if l.status??>
                                                        ${dict.getDicName('cash_apply_status',l.status?c)}
                                                    </#if>
                                                </td>
                                                <td>${l.prop!}</td>
                                                <td>${l.tax!}<small>元</small></td>
                                                <td>
                                                    <#if l.checktime??>
                                                        ${l.checktime?string('yyyy-MM-dd HH:mm:ss')}
                                                    </#if>
                                                </td>
                                                <td>
                                                    <#if l.category??>
                                                        ${dict.getDicName('cash_apply_category',l.category?c)}
                                                    </#if>
                                                </td>
                                                <td><#if l.cityid??>${dict.getCityName(l.cityid?c)}</#if></td>
                                                <td>
                                                    <div class="tpl-table-black-operation">
                                                        <#if l.status?? && l.status==0>
                                                        <a href="${contextPath}/cash/pay.htm?id=${l.id}" class="tpl-table-black-operation-del">
                                                            审核
                                                        </a>
                                                        <#else>
                                                        <a href="${contextPath}/cash/detail.htm?id=${l.id}">
                                                            查看
                                                        </a>
                                                        </#if>
                                                    </div>
                                                </td>
                                            </tr>
                                        </#list>
                                        </tbody>
                                    </table>
                                </div>
                                <#include "/pc/common/page.html">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <#include "/pc/common/alert.html" />
    <script src="${contextPath}/assets/js/amazeui.min.js"></script>
    <script src="${contextPath}/assets/js/amazeui.datatables.min.js"></script>
    <script src="${contextPath}/assets/js/dataTables.responsive.min.js"></script>
    <script src="${contextPath}/assets/js/amazeui.page.js"></script>
    <script src="${contextPath}/assets/js/app.js"></script>
    <script>
        var search_b = function() {
            var memberid = $("#memberid").val();
            var paytype = $("#paytype").val();
            var status = $("#status").val();
            var category = $("#category").val();
            var cityid = $("#cityid").val();
            var starttime = $("#starttime").val();
            var endtime = $("#endtime").val();
            var url = "${contextPath}/cash/list.htm?memberid=" + memberid + "&paytype=" + paytype + "&status=" + status+ "&category=" + category+"&starttime="+starttime+"&endtime="+endtime;
            if(cityid){
                url += "&cityid=" + cityid;
            }
            location.href = url;
        }
    </script>
</body>

</html>